package com.fanjun.learning.multithread.Activity_Object_Pattern;

/**
 * Created by fanjun on 16/10/17.
 */
abstract class Request {
    protected final Servant servant;
    protected final FutureResult future;
    protected final String name;
    public Request(String name, Servant servant, FutureResult future){
        this.servant = servant;
        this.future = future;
        this.name = name;
    }
   public abstract void execute();

    public String toString(){
        return this.name;
    }
}
